# coding: utf-8

"""
@version: python3.6
@author: 噢啦嘿嘿
@contact: jian.zhou@360che.com
@software: PyCharm
@file: main.py
@time: 2021/1/18 17:26
"""
from test_run import run_test
import time
import socket
from conftest import *
import os
import re
from multiprocessing import Process

from all_auto.conftest import red_conf

'''
入口文件
'''

class StarTest(run_test.RunTest):
    import time
    test_data = time

now = time.strftime('%Y%m%d%H%M%S', time.localtime(time.time()))
with open("conf.ini", "a") as f:
    f.write("time_new=" + now)

if __name__ == "__main__":
    run = StarTest()
    run.run_alltest()
    hostname = socket.gethostname()
    ip = socket.gethostbyname(hostname)
    if ip == '192.168.56.1':
        task_id, build_id, case_id, time_new = red_conf()
        write_sh(time_new)


